<?php

class Settings_model extends CI_Model
{

    function __construct()
    {
        parent::__construct(); // construct the Model class
    }

    public function set()
    {
        $this->load->helper('url');

        $data = array('name' => $this->input->post('name'), 'value' => $this->input->
            post('value'), 'description' => $this->input->post('description'), 'flag' => $this->
            input->post('flag'));

        return $this->db->insert('settings', $data);
    }

}
